package com.woniu.cq.medical.dao;

import com.woniu.cq.medical.controller.form.AttendanceRecordForm;
import com.woniu.cq.medical.entity.Doctor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Lucas
 * @since 2020-09-05
 */
public interface DoctorMapper extends BaseMapper<Doctor> {





    public List<AttendanceRecordForm> showDiagnosisSchedule(Date date);
    public Doctor findByDoctorId(int doctorId);
    public Set<String> findRoleValueById(int doctorId);

    @Select("SELECT * FROM lonbon_doctor as d WHERE d.administrative_id=#{administrativeId}")
    List<Doctor> queryAdministrationOrDoctorList(Integer administrativeId);

    public String getAdministrativeName(int doctorId);

    Set<String> findPermValueById(int doctorId);
}
